define(function (require, exports, module) {     
    
var SideBarView = Backbone.View.extend({
  events: {
   
  },    
  
  initialize: function(){        
      _.bindAll(this, "render");
  },  
    
  width: function(){
    return this.$el.is(":visible") ? this.model.width: 0;
  },
    
  render: function(){       
    this.$el.width(this.model.width).height("100%");
    this.$el.css({position:"absolute", top: 0, left: 0})
    return this;
  }
 
});
module.exports = SideBarView;
});